package lab02.test18;

/**
 * Created by 阿阿阿阿豪丶 on 2017/11/1.
 */
public class Test {
    public Test() {
    }

    public static void main(String[] args) {
        String name = "My name is Network crazy";
        System.out.println("字符串成都" + name.length());
        System.out.println("字符串第一个字符：" + name.charAt(0));
        System.out.println("字符串最后一个字符：" + name.charAt(name.length() - 1));
        String[] result = name.split(" ");
        System.out.println("字符串第一个单词：" + result[0]);
        System.out.println("字符串crazy中c的位置" + name.indexOf("c"));
    }
}
